package com.changgou.goods.dao;

import com.changgou.goods.pojo.Spec;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface SpecMapper extends Mapper<Spec> {

    @Select("SELECT  s.`name` ,s.`options` FROM `tb_spec` s,`tb_category` c,`tb_template` t WHERE s.`template_id`=c.`template_id` AND c.`name` = #{category}order by seq" )
    List<Map> selectListByCategoryName(@Param("category")String category);
}
